﻿using System;
using System.Collections.Generic;
using System.Text;
using Tauren.Business.Entity.Global;
using Tauren.Business.Entity.Output;
using Tauren.Business.Entity.Model;

namespace Tauren.Business.DLL.ParametersDLL
{
    public interface IParametersBusiness : Base.IBaseDLL
    {
        /// <summary>
        /// 分页获取信息
        /// </summary>
        /// <param name="queryModel"></param>
        /// <param name="Total"></param>
        /// <returns></returns>
        List<PageParametersTable> Pages(QueryModel queryModel, out long Total);

        /// <summary>
        /// 判断编码是否重复
        /// </summary>
        /// <param name="AutoId"></param>
        /// <param name="PerCode"></param>
        /// <returns></returns>
        bool IsPermissionCodeRepeat(long AutoId, string Code);

        /// <summary>
        /// 获取序号
        /// </summary>
        /// <returns></returns>
        decimal GetSeq();

        /// <summary>
        /// 根据表编码获取表
        /// </summary>
        /// <param name="Code"></param>
        /// <returns></returns>
        List<ParameterValue> GetParametersByCode(string MainCode);

        /// <summary>
        /// 添加常用参数值
        /// </summary>
        /// <param name="MainCode"></param>
        /// <param name="values"></param>
        /// <returns></returns>
        bool AddParameterValue(string MainCode, List<ParameterValue> values);
        List<ParameterTree> ParameterTrees(string MainCode);
    }
}
